home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_olv_hints.cog < prev    next >
Text File  |  1999-11-15  |  6KB  |  358 lines

  1. # Jones 3D Cog Script
  2. #
  3. # olv_hints.cog
  4. #
  5. # level hints    
  6. #
  7. # [DS]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.     message        startup
  15.     message        entered
  16.     message        crossed
  17.     message        exited
  18.     message        removed            
  19.     message        user0            #head1 cog
  20.     message        user1            #head2 cog
  21.     message        user2            #drainwater cog
  22.     message        user3            #Timed door cog
  23.     message        user4            #snake bridge cog
  24.     message        user5            #Quatzl cog.
  25.     message        user6            # bossarena cog
  26.         
  27.     thing            hint1
  28.     thing            hint2
  29.     thing            hint3
  30.     thing            hint4
  31.     thing            hint5
  32.     thing            hint6
  33.     thing            hint7
  34.     thing            hint8
  35.     thing            hint9
  36.     thing            hint10
  37.     thing            hint11
  38.     thing            hint12
  39.     thing            hint13
  40.     thing            hint14
  41.     thing            hint15
  42.     thing            hint16
  43.     thing            hint17
  44.     thing            hint18
  45.     thing            hint19
  46.     thing            hint20
  47.     thing            hint21
  48.     thing            hint22
  49.     thing            hint23
  50.     thing            hint24
  51.     thing            hint25
  52.     thing            hint26
  53.     thing            hint27
  54.     thing            hint28
  55.     thing            hint29
  56.     thing            hint30
  57.     thing            hint31
  58.     thing            hint32
  59.     thing            hint33
  60.     thing            hint34
  61.     thing            hint35
  62.  
  63.     thing            hint50
  64.  
  65.     thing        head1
  66.     thing        head2
  67.     thing        head3
  68.     sector    enter_valley
  69.     sector    exit_node1
  70.     surface    node2_south
  71.     sector    temple1_path
  72.     sector    temple1_entry
  73.     sector    head1_fallsector
  74.     surface    bridge_pad1            mask=0x480
  75.     sector    temple2_entry
  76.     sector    temple2_door
  77.     sector    temple2_block
  78.     surface    bridge_pad2            mask=0x480
  79.     sector    node2_north
  80.     sector    b1b2_path
  81.     sector    b2b3_path
  82.     sector    raingod_path
  83.     sector    raingod_temple
  84.     sector    across_bridge1
  85.     sector    across_bridge2
  86.     sector    across_bridge3
  87.     sector    b3_path0
  88.     sector    b3_path1
  89.     sector    last_chasm
  90.     sector    see_temple
  91.     thing        imp3
  92.     sector    exit
  93.         sound        music0=mus_gen_machinepart.wav    Local
  94.     thing        player                    local
  95.     int        pad2_solved=0                local
  96.     int        s                        local
  97.  
  98.     cog        commie_introcog
  99.     
  100. end
  101.  
  102. # ========================================================================================
  103.  
  104. code
  105.  
  106. startup:
  107.     player = GetLocalPlayerThing();
  108.     AttachThingToThing(hint24, head3);
  109.     return;
  110.  
  111. crossed:
  112.     if(getsenderref() == node2_south)
  113.     {
  114.     SetHintSolved(hint3);
  115.     }
  116.     return;
  117.  
  118. exited:
  119.     if((getsenderref() == bridge_pad1) && (GetSourceRef() == head1))
  120.     {
  121.     SetHintUnsolved(hint9);
  122.     return;
  123.     }
  124.     if((getsenderref() == bridge_pad2) && (GetSourceRef() == head2))
  125.     {
  126.     SetHintUnsolved(hint16);
  127.     SetHintUnsolved(hint17);
  128.     pad2_solved=0;
  129.     return;
  130.     }
  131.     return;
  132.  
  133. removed:
  134.     if(GetSenderRef() == imp3)
  135.     {
  136.     sleep(1.0);
  137.     PlaySoundLocal(music0, 1.0, 0.0, 0x0, 0);
  138.     SetHintSolved(hint34);
  139.     }
  140.     return;
  141.  
  142.         
  143. entered:
  144.     if(getsenderref() == enter_valley)
  145.     {
  146.     SetHintSolved(hint1);
  147.     return;
  148.     }
  149.     if(getsenderref() == exit_node1)
  150.     {
  151.     SetHintSolved(hint2);
  152.     return;
  153.     }
  154.     if(getsenderref() == temple1_path)
  155.     {
  156.     SetHintSolved(hint4);
  157.         if(pad2_solved == 1)
  158.         {
  159.         SetHintUnsolved(hint10);
  160.         }
  161.     return;
  162.     }
  163.     if(getsenderref() == temple1_entry)
  164.     {
  165.     SetHintSolved(hint5);
  166.     return;
  167.     }
  168.     if(getsenderref() == head1_fallsector)
  169.     {
  170.     SetHintSolved(hint6);
  171.     return;
  172.     }
  173.     if((getsenderref() == bridge_pad1) && (GetSourceRef() == head1))
  174.     {
  175.     SetHintSolved(hint9);
  176.     return;
  177.     }
  178.     if(getsenderref() == across_bridge1)
  179.     {
  180.     SetHintSolved(hint10);
  181.         if(pad2_solved == 1)
  182.         {
  183.         SetHintUnsolved(hint18);
  184.         }
  185.     return;
  186.     }
  187.     if(getsenderref() == temple2_entry)
  188.     {
  189.     SetHintSolved(hint11);
  190.     return;
  191.     }
  192.     if(getsenderref() == temple2_door)
  193.     {
  194.     SetHintSolved(hint12);
  195.     return;
  196.     }
  197.     if(getsenderref() == temple2_block)
  198.     {
  199.     SetHintSolved(hint13);
  200.     return;
  201.     }
  202.     if((getsenderref() == bridge_pad2) && (GetSourceRef() == head2))
  203.     {
  204.     SetHintSolved(hint16);
  205.     SendMessage(commie_introcog, user0);
  206.     pad2_solved=1;
  207.     return;
  208.     }
  209.     if(getsenderref() == node2_north)
  210.     {
  211.         if(pad2_solved == 1)
  212.         {
  213.         SetHintSolved(hint17);
  214.         SetHintUnsolved(hint4);
  215.         }
  216.     return;
  217.     }
  218.     if(getsenderref() == b1b2_path)
  219.     {
  220.     SetHintSolved(hint18);
  221.         if(pad2_solved == 1)
  222.         {
  223.         SetHintUnsolved(hint19);
  224.         }
  225.     return;
  226.     }
  227.     if(getsenderref() == across_bridge2)
  228.     {
  229.     SetHintSolved(hint19);
  230.     SetHintUnsolved(hint20);
  231.     return;
  232.     }
  233.     if(getsenderref() == b2b3_path)
  234.     {
  235.     SetHintSolved(hint20);
  236.     SetHintUnsolved(hint21);
  237.     }
  238.     if(getsenderref() == raingod_path)
  239.     {
  240.     SetHintSolved(hint21);
  241.     SetHintUnsolved(hint22);
  242.     return;
  243.     }
  244.     if(getsenderref() == raingod_temple)
  245.     {
  246.         for (s=0; s<=21; s=s+1)
  247.         {
  248.         SetHintSolved(hint1[s]);        #1-22 Solved. Cleanup.
  249.         }
  250.     return;
  251.     }
  252.     if(getsenderref() == across_bridge3)
  253.     {
  254.     SetHintSolved(hint25);
  255.     SetHintUnsolved(hint26);
  256.     return;
  257.     }
  258.     if(getsenderref() == b3_path0)
  259.     {
  260.     SetHintSolved(hint26);
  261.     SetHintUnsolved(hint27);
  262.     return;
  263.     }
  264.     if(getsenderref() == b3_path1)
  265.     {
  266.     SetHintSolved(hint27);
  267.     return;
  268.     }
  269.     if(getsenderref() == last_chasm)
  270.     {
  271.     SetHintSolved(hint31);
  272.     SetHintUnsolved(hint32);
  273.     return;
  274.     }
  275.     if(getsenderref() == see_temple)
  276.     {
  277.     SetHintSolved(hint32);
  278.     SetHintUnsolved(hint33);
  279.     return;
  280.     }
  281. # ----------------------------------------------
  282.     if(getsenderref() == exit)
  283.     {
  284.     SetHintSolved(hint50);
  285.     }
  286.     return;                           
  287.  
  288. user0:                            # Head1 cog.
  289.     if(getparam(0) == 1)                # On release pad.
  290.     {
  291.     SetHintSolved(hint7);
  292.     return;
  293.     }
  294.     if(getparam(0) == 2)                # Rock Head on valley floor.
  295.     {
  296.     SetHintSolved(hint8);
  297.     }
  298.     return;
  299.  
  300. user1:                            # Head2 cog.
  301.     if(getparam(0) == 1)                # On release pad.
  302.     {
  303.     SetHintSolved(hint14);
  304.     return;
  305.     }
  306.     if(getparam(0) == 2)                # Rock Head on valley floor.
  307.     {
  308.     SetHintSolved(hint15);
  309.     }
  310.     return;
  311.  
  312. user2:                            # Drainwater cog.
  313.     if(getparam(0) == 1)                # Water Drained.
  314.     {
  315.     SetHintSolved(hint23);
  316.     return;
  317.     }
  318.     if(getparam(0) == 2)                # Rock Head Blown.
  319.     {
  320.     SetHintSolved(hint24);
  321.     }
  322.     return;
  323.  
  324. user3:                            # timed door cog.
  325.     if(getparam(0) == 0)                # Reset.
  326.     {
  327.     SetHintUnsolved(hint28);
  328.     SetHintUnsolved(hint29);
  329.     return;
  330.     }
  331.     if(getparam(0) == 1)                # Switch activated.
  332.     {
  333.     SetHintSolved(hint28);
  334.     return;
  335.     }
  336.     if(getparam(0) == 2)                # Entered Door.
  337.     {
  338.     SetHintSolved(hint28);
  339.     SetHintSolved(hint29);
  340.     }
  341.     return;
  342.  
  343. user4:                            # Snake bridge cog.
  344.     SetHintSolved(hint30);
  345.     return;
  346.  
  347. user5:                            # Quatzl cog.
  348.     SetHintSolved(hint34);                #Clean Up.
  349.     SetHintSolved(hint35);
  350.     return;
  351.  
  352. user6:                            # Boss arena entry cog.
  353.     SetHintSolved(hint33);
  354.     return;
  355.  
  356. end
  357.  
  358.